package com.bling.common.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 收藏信息
 * @author BLingSoft
 *
 */

@Entity
@Table(name="T_USERCOLLECT")
public class UserCollect implements Serializable {

	private static final long serialVersionUID = 2888258527661563925L;
	
	private Integer id; //主键
	private Integer userbasicid; //用户基本信息主键
	private Integer messagebasicid; //信息基本主键
	private String createtime; //创建时间
	private Integer sort; //排序
	
	public UserCollect() {
		super();
	}
	public UserCollect(Integer userbasicid, Integer messagebasicid,
			String createtime, Integer sort) {
		super();
		this.userbasicid = userbasicid;
		this.messagebasicid = messagebasicid;
		this.createtime = createtime;
		this.sort = sort;
	}
	
	@Id
	@GeneratedValue
	@Column
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column
	public Integer getUserbasicid() {
		return userbasicid;
	}
	public void setUserbasicid(Integer userbasicid) {
		this.userbasicid = userbasicid;
	}
	
	@Column
	public Integer getMessagebasicid() {
		return messagebasicid;
	}
	public void setMessagebasicid(Integer messagebasicid) {
		this.messagebasicid = messagebasicid;
	}
	
	@Column(length=50)
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	@Column
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
}
